/*
* created by Administrator on 2018/12/13
* 好的代码像粥一样,是得用时间和精力熬的。
*/
const Koa = require('koa');
const cors = require('./cors');
const gzip = require('./gzip');
const bodyParser = require('koa-bodyparser'); // post请求获取传参
const router = require('./router');
const koaStatic = require('./koaStatic');
const connect = require('./database');
const session = require('./session');
const app = new Koa();
app.use(bodyParser());
koaStatic(app);
cors(app);
router(app);
session(app);
gzip(app);
connect(app);
// app.listen(3000,() => console.log('端口在9090运行'));
